package com.ta.gulimall.order.feign;

import com.ta.gulimall.common.utils.system.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient("gulimall-product")
public interface ProductFeignService {
    /**
     * 通过skuId集合查询spu商品信息
     * @param skuIds
     * @return
     */
    @PostMapping("/product/spuinfo/listSpuInfoBySkuIds")
    R listSpuInfoBySkuIds(@RequestBody List<Long> skuIds);

}
